/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * ReturnProductList.java
 *
 * Created on 14 ม.ค. 2553, 13:42:07
 */

package store.backend;

/**
 *
 * @author Administrator
 */
public class PnlListReturnProduct extends javax.swing.JPanel {

    /** Creates new form ReturnProductList */
    public PnlListReturnProduct() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlListReturnProduct = new javax.swing.JPanel();
        lblListReturnProduct = new javax.swing.JLabel();
        btnListReturnProductSearch = new javax.swing.JButton();
        btnListReturnProductAdd = new javax.swing.JButton();
        btnListReturnProductEdit = new javax.swing.JButton();
        btnListReturnProductCancel = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tblListReturnProduct = new javax.swing.JTable();
        txfListReturnProductIDProduct = new javax.swing.JTextField();
        txfListReturnProductIDStaff = new javax.swing.JTextField();
        lblListReturnProductIDProduct = new javax.swing.JLabel();
        lblListReturnProductIDStaff = new javax.swing.JLabel();
        lblListReturnProductOder = new javax.swing.JLabel();
        txfListReturnProductOder = new javax.swing.JTextField();
        lblListReturnProductDate = new javax.swing.JLabel();
        txfListReturnProductIDStaff1 = new javax.swing.JTextField();

        setMaximumSize(new java.awt.Dimension(700, 500));
        setLayout(new java.awt.BorderLayout());

        pnlListReturnProduct.setBackground(new java.awt.Color(255, 204, 102));
        pnlListReturnProduct.setPreferredSize(new java.awt.Dimension(700, 80));

        lblListReturnProduct.setFont(new java.awt.Font("Tahoma", 0, 16));
        lblListReturnProduct.setText("คืนสินค้า(ไปคลัง)");

        btnListReturnProductSearch.setFont(new java.awt.Font("Tahoma", 0, 14));
        btnListReturnProductSearch.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/search_30x30.gif"))); // NOI18N
        btnListReturnProductSearch.setMaximumSize(new java.awt.Dimension(75, 30));
        btnListReturnProductSearch.setMinimumSize(new java.awt.Dimension(75, 30));
        btnListReturnProductSearch.setPreferredSize(new java.awt.Dimension(40, 40));

        btnListReturnProductAdd.setFont(new java.awt.Font("Tahoma", 0, 14));
        btnListReturnProductAdd.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/add_30x30.gif"))); // NOI18N
        btnListReturnProductAdd.setMaximumSize(new java.awt.Dimension(75, 30));
        btnListReturnProductAdd.setMinimumSize(new java.awt.Dimension(75, 30));
        btnListReturnProductAdd.setPreferredSize(new java.awt.Dimension(40, 40));

        btnListReturnProductEdit.setFont(new java.awt.Font("Tahoma", 0, 14));
        btnListReturnProductEdit.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/edit1_30x30.gif"))); // NOI18N
        btnListReturnProductEdit.setMaximumSize(new java.awt.Dimension(75, 30));
        btnListReturnProductEdit.setMinimumSize(new java.awt.Dimension(75, 30));
        btnListReturnProductEdit.setPreferredSize(new java.awt.Dimension(40, 40));

        btnListReturnProductCancel.setFont(new java.awt.Font("Tahoma", 0, 14));
        btnListReturnProductCancel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/cancel_30x30.gif"))); // NOI18N
        btnListReturnProductCancel.setMaximumSize(new java.awt.Dimension(75, 30));
        btnListReturnProductCancel.setMinimumSize(new java.awt.Dimension(75, 30));
        btnListReturnProductCancel.setPreferredSize(new java.awt.Dimension(40, 40));

        javax.swing.GroupLayout pnlListReturnProductLayout = new javax.swing.GroupLayout(pnlListReturnProduct);
        pnlListReturnProduct.setLayout(pnlListReturnProductLayout);
        pnlListReturnProductLayout.setHorizontalGroup(
            pnlListReturnProductLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlListReturnProductLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlListReturnProductLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblListReturnProduct)
                    .addGroup(pnlListReturnProductLayout.createSequentialGroup()
                        .addComponent(btnListReturnProductSearch, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnListReturnProductAdd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(7, 7, 7)
                        .addComponent(btnListReturnProductEdit, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnListReturnProductCancel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(504, Short.MAX_VALUE))
        );
        pnlListReturnProductLayout.setVerticalGroup(
            pnlListReturnProductLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlListReturnProductLayout.createSequentialGroup()
                .addGap(11, 11, 11)
                .addComponent(lblListReturnProduct)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlListReturnProductLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnListReturnProductSearch, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnListReturnProductAdd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnListReturnProductEdit, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnListReturnProductCancel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        add(pnlListReturnProduct, java.awt.BorderLayout.NORTH);

        jPanel2.setPreferredSize(new java.awt.Dimension(700, 500));

        tblListReturnProduct.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        tblListReturnProduct.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null}
            },
            new String [] {
                "รายการที่", "รหัสสินค้า", "จำนวนที่คืน", "รหัสพนักงาน", "วัน/เดือน/ปี", "สาเหตุที่คืน", "คงเหลือในคลัง"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Integer.class, java.lang.String.class, java.lang.Object.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.Integer.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane1.setViewportView(tblListReturnProduct);

        txfListReturnProductIDProduct.setFont(new java.awt.Font("Tahoma", 0, 12));
        txfListReturnProductIDProduct.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txfListReturnProductIDProductActionPerformed(evt);
            }
        });

        txfListReturnProductIDStaff.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        txfListReturnProductIDStaff.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txfListReturnProductIDStaffActionPerformed(evt);
            }
        });

        lblListReturnProductIDProduct.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblListReturnProductIDProduct.setText("รหัสสินค้า :");

        lblListReturnProductIDStaff.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblListReturnProductIDStaff.setText("รหัสพนักงาน :");

        lblListReturnProductOder.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblListReturnProductOder.setText("รหัสการคืนสินค้า :");

        txfListReturnProductOder.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        txfListReturnProductOder.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txfListReturnProductOderActionPerformed(evt);
            }
        });

        lblListReturnProductDate.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblListReturnProductDate.setText("วัน/เดือน/ปี :");

        txfListReturnProductIDStaff1.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        txfListReturnProductIDStaff1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txfListReturnProductIDStaff1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 703, Short.MAX_VALUE)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblListReturnProductOder)
                    .addComponent(lblListReturnProductIDProduct)
                    .addComponent(lblListReturnProductIDStaff)
                    .addComponent(lblListReturnProductDate))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txfListReturnProductIDStaff1, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txfListReturnProductIDStaff, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txfListReturnProductIDProduct, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txfListReturnProductOder, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(402, 402, 402))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblListReturnProductOder)
                    .addComponent(txfListReturnProductOder, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblListReturnProductIDProduct)
                    .addComponent(txfListReturnProductIDProduct, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txfListReturnProductIDStaff, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblListReturnProductIDStaff))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txfListReturnProductIDStaff1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblListReturnProductDate))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 147, Short.MAX_VALUE)
                .addGap(149, 149, 149))
        );

        add(jPanel2, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents

    private void txfListReturnProductIDProductActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txfListReturnProductIDProductActionPerformed
        // TODO add your handling code here:
}//GEN-LAST:event_txfListReturnProductIDProductActionPerformed

    private void txfListReturnProductIDStaffActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txfListReturnProductIDStaffActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txfListReturnProductIDStaffActionPerformed

    private void txfListReturnProductOderActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txfListReturnProductOderActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txfListReturnProductOderActionPerformed

    private void txfListReturnProductIDStaff1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txfListReturnProductIDStaff1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txfListReturnProductIDStaff1ActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnListReturnProductAdd;
    private javax.swing.JButton btnListReturnProductCancel;
    private javax.swing.JButton btnListReturnProductEdit;
    private javax.swing.JButton btnListReturnProductSearch;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JLabel lblListReturnProduct;
    private javax.swing.JLabel lblListReturnProductDate;
    private javax.swing.JLabel lblListReturnProductIDProduct;
    private javax.swing.JLabel lblListReturnProductIDStaff;
    private javax.swing.JLabel lblListReturnProductOder;
    private javax.swing.JPanel pnlListReturnProduct;
    private javax.swing.JTable tblListReturnProduct;
    private javax.swing.JTextField txfListReturnProductIDProduct;
    private javax.swing.JTextField txfListReturnProductIDStaff;
    private javax.swing.JTextField txfListReturnProductIDStaff1;
    private javax.swing.JTextField txfListReturnProductOder;
    // End of variables declaration//GEN-END:variables

}
